package com.aispeech.asr.clib.decoder;

import com.sun.jna.Library;
import com.sun.jna.ptr.IntByReference;
import com.sun.jna.ptr.PointerByReference;

public interface IAudioDecoder extends Library {
    long audio_decoder_new(int sampleRate);

    int audio_decoder_start(long ptDecoder, int audioType, int sampleRate, int channel, int sampleBytes);

    int audio_decoder_feed(long ptDecoder, byte[] data, int size, PointerByReference output, IntByReference len_output);

    int audio_decdoer_feed_end(long ptDecoder, PointerByReference output, IntByReference len_output);

    void audio_decoder_delete(long ptDecoder);
}
